package com.hspedu.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hspedu.seckill.pojo.Order;
import com.hspedu.seckill.pojo.User;
import com.hspedu.seckill.vo.GoodsVo;

public interface OrderService extends IService<Order> {

    //秒杀方法
    Order seckill(User user, GoodsVo goodsVo);

    //生成秒杀唯一秒杀路径
    String createPath(User user, Long goodsId);

    //对秒杀路径进行校验
    boolean checkPath(User user, Long goodsId, String path);

    //验证用户输入的验证码是否正确
    boolean checkCaptcha(User user, Long goodsId, String captcha);
}
